{layout name="passport:layout" /}
<form id="form" action="{:url('system/passport.member/phone')}" method="post">
<table class="formtable"> 
    <tr>
    <th>新手机号:</th>
        <td>
            <input id="phone_id" class="input" type="text" name="phone_id" datatype="*" />
            <button id="code"  type="button" class="button">获取短信</button> 
        </td>
    </tr>
    <tr>
        <th>验证码:</th>
        <td><input class="input" datatype="*" type="text" name="sms_code" value="" /></td>
    </tr>
    <tr>
        <th>验证密码:</th>
        <td>
            <input placeholder="请输入安全密码" nullmsg="请设置密码" datatype="s6-18" class="input" type="password" name="safepassword" />
            <span class="gray">&nbsp;限制6位数字</span> 
        </td>
    </tr>
    <tr>
        <th></th>
        <td>
            <input type="submit" value="确定修改" class="button submit" />
            <input type="reset" value="重置" class="button button-blank"/>
        </td>
    </tr>
</table>
</form>
<script type="text/javascript">
Do.add('common',{path:'__PUBLIC__/manage/common.js'});
Do('base','layer','form','common',function(){
    $('#form').isForm();
    var sms_api = "{:url('system/passport.v1.alisms/getRegSms')}";
    $("#code").click([sms_api], function(){
        wechat_getsms($('#phone_id').val(),sms_api,this);
    })
})
</script>